@extends('mobile.layout1')
@section('title','推广中心')
@section('css')
    <style>
        .grade1{
            background-color: #e64849;
        }
    </style>
@endsection


@section('aside-bar')

@endsection
@section('content')
<body>
<div class="view-container mgn55">
    <div class="view-inner">
        <section class="guider-info">
            <img class="avatar" src="{{$user->headimgurl}}">
            <div class="account">
                <p>{{$user->name}}<span class="grade grade1">{{$user->team->name}}</span></p>
                <p>会员编号：{{$user->id}}</p>
                {{--<p class="grade grade1">{{$user->team->name}}</p>--}}
                <p>注册时间:{{$user->created_at}}</p>
            </div>
            <a href="{{route('myTeam.edit')}}" class="guider-icon frt" style="color: #81cac5;">编辑</a>
            {{--<div class="promote-time">
                <span class="flt">加入时间：{{$user->created_at}}</span>--}}
                {{--<span class="frt">会员编号：{{$user->id}}</span>--}}
            </div>
        </section>
        <section class="settlement-info">
            <div class="profit">
                <span class="title">累计销售</span>
                <p>{{$user->distribution_total_sale}}</p>
            </div>
            <div class="profit">
                <span class="title">累计收益</span>
                <p>{{number_format($user->distribution_money+$user->team_money,2)}}</p>


            </div>
        </section>
        <section class="settled">
            <ul class="list-block">
                <li class="special">
                    <a href="/myTeam/withdraw">账户余额：{{$user->money}}<span class="frt" style="color: #81cac5;">提现</span>
                    </a>
                </li>
            </ul>
        </section>
        <section class="mod-guider-nav">
            <ul class="clearfix">
                <li>
                    <a href="myTeam/friends">
                        <i class="if if-friend"></i>
                        <p>我的社群</p>
                        <div><span>{{$myFriendNumber}}</span>个</div>
                    </a>
                </li>
                <li>
                    <a href="/myTeam/poster">
                        <i class="if if-photo"></i>
                        <p>我的海报</p>
                        <div style="visibility: hidden">sss</div>
                    </a>
                </li>
                <li class="js-go-share">
                    <a href="/myTeam/withdrawDetail">
                        <i class="if if-spread"></i>
                        <p>财富明细</p>
                        <div><span>{{$withdrawCount}}</span>笔</div>
                    </a>
                </li>
                <li>
                    <a href="/myTeam/totalProfit">
                        <i class="if if-setting"></i>
                        <p>总收益</p>
                        <div><span>{{number_format($user->distribution_money+$user->team_money,2)}}</span>元</div>


                    </a>
                </li>
                <li>
                    <a href="/myTeam/profit/distribution">
                        <i class="if if-link"></i>
                        <p>分享佣金</p>
                        <div><span>{{$user->distribution_money}}</span>元</div>
                    </a>
                </li>
                <li>
                    <a href="/myTeam/profit/team">
                        <i class="if if-team"></i>
                        <p>社群奖励</p>
                        <div><span>{{$user->team_money}}</span>元</div>
                    </a>
                </li>
            </ul>
        </section>
    </div>
</div>
<div class="footer-nav">
    <ul class="nav-items">
        <li class="active">
            <a href="/myTeam">
                <div class="footer-icon4"></div>
                <span>首页</span>
            </a>
        </li>
        <li>
            <a href="/myTeam/profit/distribution">
                <div class="footer-icon5"></div>
                <span>我的销售</span>
            </a>
        </li>
        <li>
            <a href="/myTeam/tixian">
                <div class="footer-icon6"></div>
                <span>提现说明</span>
            </a>
        </li>
    </ul>
</div>
</body>
</html>
    @endsection